package com.moleq.models;

import java.io.Serializable;

public class Product implements Serializable {

	private String barcode;
	private double cost;
	private String image;
	private String name1;
	private String desc;
	private long pid;
	private double price;
	private String taxable;
	private String Weight;
	private boolean isWeight;
	private String isActive;
	private boolean followdep;
	

	private double dep;
	private boolean tax1;
	private boolean tax2 ;
	private boolean tax3 ;
	private boolean tax4 ;
	private boolean tax5 ;
	private boolean tax6 ;
	
	private boolean foodstamp;
	private int bottle_deposit;
	private int tare;
	private int ageLinkNo;
	private boolean nodiscount;
	private double unit_price_factor;
	private boolean wic;
	private boolean cvv;
	
	private int CurrentPriceQty;
	private boolean iscoupon;
	
	private boolean isServiceItem; 
	private int printer_id; 
	private boolean is_mult_coupon;
	
	public boolean getIscoupon() {
		return iscoupon;
	}

	public void setIscoupon(boolean iscoupon) {
		this.iscoupon = iscoupon;
	}

	public boolean isServiceItem() {
		return isServiceItem;
	}

	public void setServiceItem(boolean isServiceItem) {
		this.isServiceItem = isServiceItem;
	}

	public int getPrinter_id() {
		return printer_id;
	}

	public void setPrinter_id(int printer_id) {
		this.printer_id = printer_id;
	}

	public Product() {
	}

//	public Product(long _pid, String _barcode, String _name1, String _desc,
//			double _price, double _cost, String _taxable, String _image,  
//			String _weight,boolean _isWeight,String _isActive) {
//		this.pid = _pid;
//		this.barcode = _barcode;
//		this.name1 = _name1;
//		this.desc = _desc;
//		this.price = _price;
//		this.cost = _cost;
//		this.taxable = _taxable;
//		this.image = _image;
//		this.Weight = _weight;
//		this.isWeight = _isWeight;
//		this.setIsActive(_isActive);
//	}
	

	public Product(long _pid, String _barcode, String _name1, String _desc,
			double _price, double _cost, String _taxable, String _image,  
			String _weight,boolean _isWeight,String _isActive,boolean _followdep,double _dep,boolean _tax1,boolean _tax2,boolean _tax3,
			boolean _tax4,boolean _tax5,boolean _tax6,boolean _foodstamp,int _bottle_deposit,int _age,boolean _nodiscount,
			double _unit_price_factor,int currentPriceQty,boolean _iscoupon,boolean _wic,boolean _cvv,
			boolean isServiceItem,int printer_id,boolean is_mult_coupon) {
		this.pid = _pid;
		this.barcode = _barcode;
		this.name1 = _name1;
		this.desc = _desc;
		this.price = _price;
		this.cost = _cost;
		this.taxable = _taxable;
		this.image = _image;
		this.Weight = _weight;
		this.isWeight = _isWeight;
		this.setIsActive(_isActive);
		this.followdep = _followdep;
		this.dep = _dep;
		this.tax1 = _tax1;
		this.tax2 = _tax2;
		this.tax3 = _tax3;
		this.tax4 = _tax4;
		this.tax5 = _tax5;
		this.tax6 = _tax6;
		this.foodstamp = _foodstamp;
		this.bottle_deposit = _bottle_deposit;
		this.ageLinkNo = _age;
		this.nodiscount = _nodiscount;
		this.unit_price_factor = _unit_price_factor;
		this.CurrentPriceQty = currentPriceQty;
		this.iscoupon = _iscoupon;
		this.wic = _wic;
		this.cvv = _cvv;
		this.isServiceItem = isServiceItem;
		this.printer_id = printer_id;
		this.is_mult_coupon = is_mult_coupon;
	}
	
	public boolean isWic() {
		return wic;
	}

	public void setWic(boolean wic) {
		this.wic = wic;
	}

	public boolean isCvv() {
		return cvv;
	}

	public void setCvv(boolean cvv) {
		this.cvv = cvv;
	}
	public double getUnit_price_factor() {
		return unit_price_factor;
	}

	public void setUnit_price_factor(double unit_price_factor) {
		this.unit_price_factor = unit_price_factor;
	}
	
	public boolean getNodiscount() {
		return nodiscount;
	}

	public void setNodiscount(boolean nodiscount) {
		this.nodiscount = nodiscount;
	}
	
	public int getAgeLinkNo() {
		return ageLinkNo;
	}

	public void setAgeLinkNo(int id) {
		this.ageLinkNo = id;
	}
	public int getTare() {
		return tare;
	}

	public void setTare(int tare) {
		this.tare = tare;
	}
	
	public int getBottle_deposit() {
		return bottle_deposit;
	}

	public void setBottle_deposit(int bottle_deposit) {
		this.bottle_deposit = bottle_deposit;
	}
	public boolean getFoodstamp() {
		return foodstamp;
	}

	public void setFoodstamp(boolean foodstamp) {
		this.foodstamp = foodstamp;
	}
	
	public boolean getFollowdep() {
		return followdep;
	}

	public void setFollowdep(boolean followdep) {
		this.followdep = followdep;
	}

	public double getDep() {
		return dep;
	}

	public void setDep(int dep) {
		this.dep = dep;
	}

	public boolean getTax1() {
		return tax1;
	}

	public void setTax1(boolean tax1) {
		this.tax1 = tax1;
	}

	public boolean getTax2() {
		return tax2;
	}

	public void setTax2(boolean tax2) {
		this.tax2 = tax2;
	}

	public boolean getTax3() {
		return tax3;
	}

	public void setTax3(boolean tax3) {
		this.tax3 = tax3;
	}

	public boolean getTax4() {
		return tax4;
	}

	public void setTax4(boolean tax4) {
		this.tax4 = tax4;
	}
	public boolean getTax5() {
		return tax5;
	}

	public void setTax5(boolean tax5) {
		this.tax5 = tax5;
	}

	public boolean getTax6() {
		return tax6;
	}

	public void setTax6(boolean tax6) {
		this.tax6 = tax6;
	}
	//====================================
	
	public String getBarcode() {
		return barcode;
	}

	public double getCost() {
		return cost;
	}

	public String getImage() {
		return image;
	}

	public String getName1() {
		return name1;
	}

	public String getDesc() {
		return desc;
	}

	public long getPid() {
		return pid;
	}

	public double getPrice() {
		double result = price;
//		if (iscoupon) {
			//result = result * -1;
//		}
		return result;
	}

	public String getTaxable() {
		return taxable;
	}

	public String getWeight() {
		return Weight;
	}

	public void setBarcode(String barcode) {
		this.barcode = barcode;
	}

	public void setCost(double cost) {
		this.cost = cost;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public void setName1(String name1) {
		this.name1 = name1;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public void setPid(long pid) {
		this.pid = pid;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public void setTaxable(String taxable) {
		this.taxable = taxable;
	}

	public void setWeight(String weight) {
		Weight = weight;
	}

	public boolean isWeight() {
		return isWeight;
	}

	public void setWeight(boolean isWeight) {
		this.isWeight = isWeight;
	}

	public String getIsActive() {
		return isActive;
	}

	public void setIsActive(String isActive) {
		this.isActive = isActive;
	}

	public int getCurrentPriceQty() {
		if(CurrentPriceQty  <= 0){
			CurrentPriceQty = 1;
		}
		return CurrentPriceQty;
	}

	public void setCurrentPriceQty(int currentPriceQty) {
		CurrentPriceQty = currentPriceQty;
	}

	public boolean getIs_mult_coupon() {
		return is_mult_coupon;
	}

	public void setIs_mult_coupon(boolean is_mult_coupon) {
		this.is_mult_coupon = is_mult_coupon;
	}

	

}
